package com.misty.observer_pattern.observer2;

import java.util.Observable;
import java.util.Observer;

public class LiuSi implements Observer {
    //汇报给秦始皇
    private void cry(String reportContext) {
        System.out.println("刘思: 另一个间谍-->" + reportContext);
    }

    @Override
    public void update(Observable o, Object msg) {
        System.out.println("刘思：观察到韩非子活动，开始下一步行动...");
        this.cry(msg.toString());
        System.out.println("刘思：汇报完毕...\n");
    }
}
